/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package bygf.dts.gui;

import com.bygf.curve.demo.XYCurveDemo4;

/**
 *
 * @author Administrator
 */
public class CurveJFrame extends javax.swing.JFrame {
    
    /**
     * Creates new form CurveJFrame
     */
    public CurveJFrame() {
        initComponents();
        setDefaultCloseOperation(javax.swing.JFrame.DISPOSE_ON_CLOSE);
//        XYCurveDemo4 xYCurveDemo4 = new XYCurveDemo4();
//        
//        xYCurveDemo4.setBounds(1, 1, jPanelCurve.getWidth(), jPanelCurve.getHeight());
//        jPanelCurve.add(xYCurveDemo4);
//        jPanelCurve.updateUI();
//        System.gc();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        jPanelCurve = new javax.swing.JPanel();
        jPanelInfo = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        jPanelExit = new javax.swing.JPanel();
        jButtonExit = new javax.swing.JButton();
        jPanelMarker = new javax.swing.JPanel();
        jPanel1 = new javax.swing.JPanel();
        jLabel3 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jTextField1 = new javax.swing.JTextField();
        jLabel4 = new javax.swing.JLabel();
        jTextField2 = new javax.swing.JTextField();
        jPanel2 = new javax.swing.JPanel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jTextField3 = new javax.swing.JTextField();
        jLabel7 = new javax.swing.JLabel();
        jTextField4 = new javax.swing.JTextField();
        jPanelCoordinate = new javax.swing.JPanel();
        jPanel3 = new javax.swing.JPanel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jTextField5 = new javax.swing.JTextField();
        jLabel10 = new javax.swing.JLabel();
        jTextField6 = new javax.swing.JTextField();
        jPanel4 = new javax.swing.JPanel();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jTextField7 = new javax.swing.JTextField();
        jLabel13 = new javax.swing.JLabel();
        jTextField8 = new javax.swing.JTextField();
        jPanelScale = new javax.swing.JPanel();
        jRadioButton3 = new javax.swing.JRadioButton();
        jRadioButton4 = new javax.swing.JRadioButton();
        jRadioButton2 = new javax.swing.JRadioButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setMaximumSize(new java.awt.Dimension(1024, 600));
        setMinimumSize(new java.awt.Dimension(1024, 600));
        setResizable(false);
        setSize(new java.awt.Dimension(1024, 600));
        getContentPane().setLayout(null);

        jPanelCurve.setBackground(new java.awt.Color(0, 0, 0));

        javax.swing.GroupLayout jPanelCurveLayout = new javax.swing.GroupLayout(jPanelCurve);
        jPanelCurve.setLayout(jPanelCurveLayout);
        jPanelCurveLayout.setHorizontalGroup(
            jPanelCurveLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 1000, Short.MAX_VALUE)
        );
        jPanelCurveLayout.setVerticalGroup(
            jPanelCurveLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 400, Short.MAX_VALUE)
        );

        getContentPane().add(jPanelCurve);
        jPanelCurve.setBounds(10, 30, 1000, 400);

        jPanelInfo.setLayout(null);

        jLabel1.setFont(new java.awt.Font("文泉驿等宽微米黑", 0, 18)); // NOI18N
        jLabel1.setText("当前通道：");
        jPanelInfo.add(jLabel1);
        jLabel1.setBounds(20, 0, 90, 30);

        jLabel14.setFont(new java.awt.Font("文泉驿等宽微米黑", 0, 18)); // NOI18N
        jLabel14.setText("jLabel14");
        jPanelInfo.add(jLabel14);
        jLabel14.setBounds(120, 0, 120, 30);

        getContentPane().add(jPanelInfo);
        jPanelInfo.setBounds(10, 0, 850, 30);

        jPanelExit.setPreferredSize(new java.awt.Dimension(140, 40));
        jPanelExit.setLayout(null);

        jButtonExit.setFont(new java.awt.Font("文泉驿等宽微米黑", 0, 18)); // NOI18N
        jButtonExit.setText("退出");
        jButtonExit.setPreferredSize(new java.awt.Dimension(69, 40));
        jButtonExit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonExitActionPerformed(evt);
            }
        });
        jPanelExit.add(jButtonExit);
        jButtonExit.setBounds(50, 0, 81, 30);

        getContentPane().add(jPanelExit);
        jPanelExit.setBounds(880, 0, 140, 30);

        jPanelMarker.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "标尺", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("文泉驿等宽微米黑", 0, 18))); // NOI18N
        jPanelMarker.setLayout(null);

        jPanel1.setLayout(new javax.swing.BoxLayout(jPanel1, javax.swing.BoxLayout.LINE_AXIS));

        jLabel3.setFont(new java.awt.Font("文泉驿等宽微米黑", 0, 18)); // NOI18N
        jLabel3.setText("标尺一 ");
        jPanel1.add(jLabel3);

        jLabel2.setFont(new java.awt.Font("文泉驿等宽微米黑", 0, 18)); // NOI18N
        jLabel2.setText(" X ");
        jPanel1.add(jLabel2);
        jPanel1.add(jTextField1);

        jLabel4.setFont(new java.awt.Font("文泉驿等宽微米黑", 0, 18)); // NOI18N
        jLabel4.setText(" Y ");
        jPanel1.add(jLabel4);
        jPanel1.add(jTextField2);

        jPanelMarker.add(jPanel1);
        jPanel1.setBounds(10, 30, 330, 30);

        jPanel2.setLayout(new javax.swing.BoxLayout(jPanel2, javax.swing.BoxLayout.LINE_AXIS));

        jLabel5.setFont(new java.awt.Font("文泉驿等宽微米黑", 0, 18)); // NOI18N
        jLabel5.setText("标尺二 ");
        jPanel2.add(jLabel5);

        jLabel6.setFont(new java.awt.Font("文泉驿等宽微米黑", 0, 18)); // NOI18N
        jLabel6.setText(" X ");
        jPanel2.add(jLabel6);
        jPanel2.add(jTextField3);

        jLabel7.setFont(new java.awt.Font("文泉驿等宽微米黑", 0, 18)); // NOI18N
        jLabel7.setText(" Y ");
        jPanel2.add(jLabel7);
        jPanel2.add(jTextField4);

        jPanelMarker.add(jPanel2);
        jPanel2.setBounds(10, 80, 330, 30);

        getContentPane().add(jPanelMarker);
        jPanelMarker.setBounds(10, 440, 360, 130);

        jPanelCoordinate.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "坐标范围", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("文泉驿等宽微米黑", 0, 18))); // NOI18N
        jPanelCoordinate.setLayout(null);

        jPanel3.setLayout(new javax.swing.BoxLayout(jPanel3, javax.swing.BoxLayout.LINE_AXIS));

        jLabel8.setFont(new java.awt.Font("文泉驿等宽微米黑", 0, 18)); // NOI18N
        jLabel8.setText(" X ");
        jPanel3.add(jLabel8);

        jLabel9.setFont(new java.awt.Font("文泉驿等宽微米黑", 0, 18)); // NOI18N
        jLabel9.setText("开始 ");
        jPanel3.add(jLabel9);
        jPanel3.add(jTextField5);

        jLabel10.setFont(new java.awt.Font("文泉驿等宽微米黑", 0, 18)); // NOI18N
        jLabel10.setText(" 结束 ");
        jPanel3.add(jLabel10);
        jPanel3.add(jTextField6);

        jPanelCoordinate.add(jPanel3);
        jPanel3.setBounds(10, 30, 330, 30);

        jPanel4.setLayout(new javax.swing.BoxLayout(jPanel4, javax.swing.BoxLayout.LINE_AXIS));

        jLabel11.setFont(new java.awt.Font("文泉驿等宽微米黑", 0, 18)); // NOI18N
        jLabel11.setText(" Y ");
        jPanel4.add(jLabel11);

        jLabel12.setFont(new java.awt.Font("文泉驿等宽微米黑", 0, 18)); // NOI18N
        jLabel12.setText("开始 ");
        jPanel4.add(jLabel12);
        jPanel4.add(jTextField7);

        jLabel13.setFont(new java.awt.Font("文泉驿等宽微米黑", 0, 18)); // NOI18N
        jLabel13.setText(" 结束 ");
        jPanel4.add(jLabel13);
        jPanel4.add(jTextField8);

        jPanelCoordinate.add(jPanel4);
        jPanel4.setBounds(10, 80, 330, 30);

        getContentPane().add(jPanelCoordinate);
        jPanelCoordinate.setBounds(380, 440, 360, 130);

        jPanelScale.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "缩放", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("文泉驿等宽微米黑", 0, 18))); // NOI18N
        jPanelScale.setLayout(null);

        buttonGroup1.add(jRadioButton3);
        jRadioButton3.setFont(new java.awt.Font("文泉驿等宽微米黑", 0, 18)); // NOI18N
        jRadioButton3.setText("水平");
        jPanelScale.add(jRadioButton3);
        jRadioButton3.setBounds(10, 30, 61, 31);

        buttonGroup1.add(jRadioButton4);
        jRadioButton4.setFont(new java.awt.Font("文泉驿等宽微米黑", 0, 18)); // NOI18N
        jRadioButton4.setText("区域");
        jPanelScale.add(jRadioButton4);
        jRadioButton4.setBounds(10, 90, 61, 31);

        buttonGroup1.add(jRadioButton2);
        jRadioButton2.setFont(new java.awt.Font("文泉驿等宽微米黑", 0, 18)); // NOI18N
        jRadioButton2.setText("垂直");
        jRadioButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRadioButton2ActionPerformed(evt);
            }
        });
        jPanelScale.add(jRadioButton2);
        jRadioButton2.setBounds(10, 60, 61, 31);

        getContentPane().add(jPanelScale);
        jPanelScale.setBounds(750, 440, 90, 130);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jRadioButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButton2ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jRadioButton2ActionPerformed

    private void jButtonExitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonExitActionPerformed
        // TODO add your handling code here:
        dispose();
    }//GEN-LAST:event_jButtonExitActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(CurveJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(CurveJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(CurveJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(CurveJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new CurveJFrame().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.JButton jButtonExit;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanelCoordinate;
    private javax.swing.JPanel jPanelCurve;
    private javax.swing.JPanel jPanelExit;
    private javax.swing.JPanel jPanelInfo;
    private javax.swing.JPanel jPanelMarker;
    private javax.swing.JPanel jPanelScale;
    private javax.swing.JRadioButton jRadioButton2;
    private javax.swing.JRadioButton jRadioButton3;
    private javax.swing.JRadioButton jRadioButton4;
    private javax.swing.JTextField jTextField1;
    private javax.swing.JTextField jTextField2;
    private javax.swing.JTextField jTextField3;
    private javax.swing.JTextField jTextField4;
    private javax.swing.JTextField jTextField5;
    private javax.swing.JTextField jTextField6;
    private javax.swing.JTextField jTextField7;
    private javax.swing.JTextField jTextField8;
    // End of variables declaration//GEN-END:variables
}
